package oo

import (
	"elegantGo/chapter17/controller/response"
	"elegantGo/chapter17/oo/article"
)

type FreeArticle struct {
	baseArticle
	article.Content
}

func (oo *FreeArticle) Mapper() *response.Article {
	if oo == nil {
		return nil
	}
	respArticle := oo.baseArticle.Mapper()
	respArticle.Content = oo.GetContent()
	return respArticle
}
